package com.atguigu.springcloud.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author 孙志鹏
 * @createDate 2022/4/5 18:16
 */
@Component
@FeignClient(value = "CLOUD-PROIVDER-HYSTRIX-PAYMENT",path = "/payment")
public interface PaymentHystrixFeignService {

    @GetMapping("/ok/{id}")
    String paymentInfoOK(@PathVariable(value = "id") Integer id);

    @GetMapping("/timeout/{id}")
    String paymentInfoTimeout(@PathVariable(value = "id") Integer id);

}
